package com.example.elderlycare.dao.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.util.Date;

@Data
@TableName("trains")
@Builder
public class Train {
    private Integer id;
    private Date deleteAt;
    private String trainName;
    private Date startTime;
    private Date endTime;
    private String address;
    private Integer countNum;
    private String content;
    private String trainer;
    private String trainDepartment;

    private Integer trainTypeId;
    @TableField(exist = false)
    private Common trainType;

    @Tolerate
    Train() {
    }
}
